package com.bp.village.enums;

import java.util.HashMap;
import java.util.Map;

/**
 * @author shaominjie
 * @description 村级项目阶段
 * @date 2021/1/26 0026 16:40
 */
public enum EnumProjectStatus {
    /* 新建 */
    STEP_1(1,"立项"),
    /* 招标 */
    STEP_2(2,"招标"),
    /* 设计 */
    STEP_3(3,"中标"),
    /* 实施 */
    STEP_4(4,"实施"),
    /* 审计 */
    STEP_5(5,"审计"),
    /* 验收 */
    STEP_6(6,"验收"),
    /*即将过期*/
    STEP_7(7,"完成");

    private final Integer step;
    private final String stepName;

    EnumProjectStatus(Integer step, String stepName) {
        this.step = step;
        this.stepName = stepName;
    }

    public Integer getStep() {
        return step;
    }

    public String getStepName() {
        return stepName;
    }

    public final static Map<Integer,String> PROJECT_STATUS_MAP = new HashMap<Integer, String>() {{
        put(STEP_1.getStep(), STEP_1.getStepName());
        put(STEP_2.getStep(), STEP_2.getStepName());
        put(STEP_3.getStep(), STEP_3.getStepName());
        put(STEP_4.getStep(), STEP_4.getStepName());
        put(STEP_5.getStep(), STEP_5.getStepName());
        put(STEP_6.getStep(), STEP_6.getStepName());
        put(STEP_7.getStep(), STEP_7.getStepName());
    }};
}
